package skymatts;


import java.util.HashMap;



public class Info {
	private HashMap<String, Team> info = new HashMap<String, Team>();
	
	public void addTeam(Team newTeam) {
		info.put(newTeam.getName(), newTeam);
	}
	
	public Team getTeam(String name) {
		return info.get(name);
	}
	
	public static void main(String[] args) {
		Info i = new Info();
		
		Team sky = new Team();
		sky.setName("sky");
		sky.setRank(1);
		
		Team loyola = new Team();
		loyola.setName("loyola");
		loyola.setRank(2);
		
		i.addTeam(loyola);
		i.addTeam(sky);
		
		//ask the user for a team name
		String teamName ="sky";
		
		Team found = i.getTeam(teamName);
	}
}
